Skip to content

User os.UserHomeDir where possible#25950

Merged
zmb3 merged 1 commit intomasterfrom
zmb3/user-home-dir
May 9, 2023
Merged

User os.UserHomeDir where possible#25950
zmb3 merged 1 commit intomasterfrom
zmb3/user-home-dir

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 9, 2023

In #24156 we removed a lot of unnecessary calls to user.Current, which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were doing a full user lookup only to find the user's home directory, which is usually more readily available via the environment.

Updates #25014

In #24156 we removed a lot of unnecessary calls to user.Current,
which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were
doing a full user lookup only to find the user's home directory,
which is usually more readily available via the environment.
@zmb3 zmb3 requested review from capnspacehook and r0mant May 9, 2023 19:31
@github-actions github-actions Bot requested review from Joerger and fspmarshall May 9, 2023 19:31
@zmb3 zmb3 enabled auto-merge May 9, 2023 20:25
@zmb3 zmb3 added this pull request to the merge queue May 9, 2023
Merged via the queue into master with commit c012ba1 May 9, 2023
@zmb3 zmb3 deleted the zmb3/user-home-dir branch May 9, 2023 20:45
@public-teleport-github-review-bot
Copy link
Copy Markdown

@zmb3 See the table below for backport results.

Branch Result
branch/v12 Create PR
branch/v13 Create PR

zmb3 added a commit that referenced this pull request May 10, 2023
This fixes a bug introduced in #25950
@zmb3 zmb3 mentioned this pull request May 10, 2023
zmb3 added a commit that referenced this pull request May 10, 2023
This fixes a bug introduced in #25950
zmb3 added a commit that referenced this pull request May 11, 2023
This fixes a bug introduced in #25950
zmb3 added a commit that referenced this pull request May 11, 2023
This fixes a bug introduced in #25950
zmb3 added a commit that referenced this pull request May 11, 2023
* User os.UserHomeDir where possible

In #24156 we removed a lot of unnecessary calls to user.Current,
which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were
doing a full user lookup only to find the user's home directory,
which is usually more readily available via the environment.

* Fix tsh profile dir

This fixes a bug introduced in #25950
michellescripts pushed a commit that referenced this pull request May 11, 2023
* User os.UserHomeDir where possible

In #24156 we removed a lot of unnecessary calls to user.Current,
which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were
doing a full user lookup only to find the user's home directory,
which is usually more readily available via the environment.

* Fix tsh profile dir

This fixes a bug introduced in #25950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants